project(conv C CXX)
cmake_minimum_required(VERSION 2.8)
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake)

find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(GLEW REQUIRED)
find_package(Cg REQUIRED)

include_directories(
    ${OPENGL_INCLUDE_DIR}
    ${GLUT_INCLUDE_DIR}
    ${GLEW_INCLUDE_PATH}
    ${CG_INCLUDE_PATH}
)
add_executable(conv src/conv.cpp src/utility.cpp)
target_link_libraries(conv
    ${CG_LIBRARY}
    ${CG_GL_LIBRARY}
    ${OPENGL_LIBRARIES}
    ${GLUT_LIBRARIES}
    ${GLEW_LIBRARY}
)
